package com.nanjia.boot.product.spu.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品基础信息(SPU)视图对象
 *
 * @author 周洋
 * @since 2025-07-07 16:28
 */
@Getter
@Setter
@Schema(description = "商品基础信息(SPU)视图对象")
public class ProductSpuVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "SPU主键")
    private Long id;
    @Schema(description = "SPU编码")
    private String spuCode;
    @Schema(description = "商品名称")
    private String spuName;
    @Schema(description = "分类ID")
    private Long categoryId;
    @Schema(description = "品牌ID")
    private Long brandId;
    @Schema(description = "主图URL")
    private String mainImage;

    @Schema(description = "附图URL")
    private String detailImages;

    @Schema(description = "状态(1:上架,0:下架)")
    private Integer status;

    private LocalDateTime createTime;

    private String brandName;
}
